package mx.ipn.pruebas;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;

public class Log {

	public static void main(String[]args){
		PrintStream printStream;
		
		try{
			File file = new File("/home/jorge","saist.log");
			printStream = new PrintStream(new BufferedOutputStream(new FileOutputStream(file)), true);
			System.setErr(printStream);
			System.setOut(printStream);
		}catch(IOException e){
			System.err.println("El archivo se niega cobardemente a ser escrito...");
		}
		
		System.out.println("El log ha nacido: " + new java.util.Date());
	}
	
}
